/*
 *  Copyright 2019-2020 Zheng Jie
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package me.zhengjie.modules.kaoqin.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import org.hibernate.mapping.Map;

import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * @website https://eladmin.vip
 * @description /
 * @author wzy
 * @date 2024-11-17
 **/
@Entity
@Data
@Table(name="attention")
public class attention implements Serializable {

    @Column(name = "`studentid`")
    private Integer studentid;

    @Column
    private Integer data1;

    @Column
    private Integer data2;
    @Column
    private Integer data3;
    @Column
    private Integer data4;
    @Column
    private Integer data5;
    @Column
    private Integer data6;
    @Column
    private Integer data7;
    @Column
    private Integer data8;
    @Column
    private Integer data9;
    @Column
    private Integer data10;
    @Column
    private Integer data11;
    @Column
    private Integer data12;
    @Column
    private Integer data13;
    @Column
    private Integer data14;
    @Column
    private Integer data15;
    @Column
    private Integer data16;
    @Column
    private Integer data17;
    @Column
    private Integer data18;
    @Column
    private Integer data19;
    @Column
    private Integer data20;
    @Column
    private Integer data21;
    @Column
    private Integer data22;
    @Column
    private Integer data23;
    @Column
    private Integer data24;
    @Column
    private Integer data25;

    @Column
    private Integer sum;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "`id`")
    @ApiModelProperty(value = "序号")
    private Integer id;

    public void copy(Kaoqin source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
